import sys
import time

import pytest
import os
import pkgutil

def params(param, *param1):
    print(param)
    print(param1)


def xtest_xxx():
    params("12345", 1,2,3);
    print("login {0} username {1} password {2}".format("10.45.80.3", "admin", "11"))

def xtest_python():
    pkgpath = os.path.dirname("E:/ZTP/selenium/brokenwall/ZCMCase")
    pkgname = os.path.basename(pkgpath)

    for _, file, _ in pkgutil.iter_modules([pkgpath]):
        print(file)
        __import__(pkgname + '.' + file)
    modulesList = list(sys.modules.keys())
    for module in modulesList:
        print(module)
    # logger.debug("init page {0}".format(page))
    # module = self._getModule(page)
    # print(module)
    # pageClass = getattr(sys.modules[module], page)
    # pageInit = pageClass(browser).init_page(browser)

list = sys.path.append("E:/ZTP/selenium/brokenwall/ZCMCase")
for module in sys.path:
    print(module)
